<template>
	<view class="g-parent">
		父组件 Parent
		<ComA :msg="content" @some-event="onSomeEvent"></ComA>
		{{title}}
	</view>
</template>

<script>
	import ComA from '@/components/ComA.vue'
	export default {
		name:"Parent",
		components:{
			ComA
		},
		data() {
			return {
				content:'父组件内容',
				title:''
			};
		},
		methods:{
			onSomeEvent(message){
				console.log(message);
				this.title= message
			}
		}
	}
</script>

<style lang="scss" scoped>
.g-parent{
	width: 600rpx;
	height: 600rpx;
	background-color: pink;
}
</style>